package com.yidu.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import com.yidu.domain.ListenFinance;
import com.yidu.domain.ListenPurchase;
import com.yidu.domain.ListenReturnGoods;
import com.yidu.domain.ListenStock;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangyu
 * @since 2018-11-27
 */
public interface ListenReturnGoodsService{
	List<ListenPurchase> selectAll(Map<String, Object> map );
	
	int selectAllRows(Map<String, Object> map);
	
	int addReturn(ListenReturnGoods goods);
	
	List<ListenReturnGoods> selectReturnAll(Map<String, Object> map);
    

    int selectReturnCount(Map<String, Object> map);
    
    int updateState(ListenReturnGoods goods);
    
    
    /**
     * 添加库存数量
     * @param listenStock
     * @return
     */
    int updateAddNumber(ListenStock listenStock);
    

    /**
     * 减少库存数量
     * @param listenStock
     * @return
     */
    int updateMinusNumber(ListenStock listenStock);
    
    /**
     * 添加公司财务
     * @param finance
     * @return
     */
    int updateAddMoney(ListenFinance finance);
    
    /**
     * 减少公司财务
     * @param finance
     * @return
     */
    int updateMinusMoney(ListenFinance finance);
	
}
